package com.itlaobing.array;

/**
 * 一个完数的因数未必非得是三个 【这个是错误的】
 */
public class PerfectNumber3 {

	public static void main(String[] args) {

		for (int i = 1; i <= 10 ; i++) {
			
			for (int k = 1; k <= 10 ; k++) {
				
				for (int x = 1; x <= 10 ; x++) {
					
					if( ( i != k ) && ( k != x ) && ( i != x ) && ( i + k + x == i * k * x ) ) {
						System.out.println( i + k + x );
					}

				}

			}

		}

	}

}
